home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / gnustuff / tos / updates / update27.zoo / libg++ / tests / diffs next >
Encoding:
Text File  |  1992-12-28  |  4.5 KB  |  199 lines

  1. *** 1.6    1992/11/08 00:38:51
  2. --- PatchLev.h    1992/12/28 07:29:24
  3. ***************
  4. *** 1,5 ****
  5.   
  6. ! #define    PatchLevel "8"
  7.   
  8.   /*
  9.    *    the Patch Level above is to identify the version
  10. --- 1,5 ----
  11.   
  12. ! #define    PatchLevel "9"
  13.   
  14.   /*
  15.    *    the Patch Level above is to identify the version
  16. *** 1.3    1992/07/21 14:47:55
  17. --- expected.out    1992/12/28 07:29:25
  18. ***************
  19. *** 647,649 ****
  20. --- 647,698 ----
  21.   1.1 = 1
  22.   .7 + .5 = -0.8
  23.   -.5 - .7 = 0.8
  24. + prepending...
  25. + a: 9 8 7 6 5 4 3 2 1 0 
  26. + appending...
  27. + a: 9 8 7 6 5 4 3 2 1 0 0 1 2 3 4 5 6 7 8 9 
  28. + b = a: 
  29. + 9 8 7 6 5 4 3 2 1 0 0 1 2 3 4 5 6 7 8 9 
  30. + remove_front of first 10 elements:
  31. + b: 0 1 2 3 4 5 6 7 8 9 
  32. + inserting 100 after sixth element...
  33. + b: 0 1 2 3 4 5 100 6 7 8 9 
  34. + after a.join(b)
  35. + 9 8 7 6 5 4 3 2 1 0 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 100 6 7 8 9 
  36. + b: 
  37. + b: 
  38. + 999 
  39. + bb: 
  40. + 999 
  41. + prepending...
  42. + a: 
  43. + 9 8 7 6 5 4 3 2 1 0 
  44. + appending...
  45. + a: 9 8 7 6 5 4 3 2 1 0 0 1 2 3 4 5 6 7 8 9 
  46. + b = a: 9 8 7 6 5 4 3 2 1 0 0 1 2 3 4 5 6 7 8 9 
  47. + remove_front of first 10 elements:
  48. + b: 0 1 2 3 4 5 6 7 8 9 
  49. + inserting 100 after sixth element...
  50. + b: 0 1 2 3 4 5 100 6 7 8 9 
  51. + after aa = a; aa.join(b)
  52. + 9 8 7 6 5 4 3 2 1 0 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 100 6 7 8 9 
  53. + b: 
  54. + b: 
  55. + 999 
  56. + bb: 
  57. + 999 
  58. + z = a: 9 8 7 6 5 4 3 2 1 0 0 1 2 3 4 5 6 7 8 9 
  59. + remove_rear of last 10 elements:
  60. + z: 9 8 7 6 5 4 3 2 1 0 
  61. + inserting 100 before alternate elements...
  62. + z: 100 9 100 8 100 7 100 6 100 5 100 4 100 3 100 2 100 1 100 0 
  63. + inserting 200 after sixth element...
  64. + z: 100 9 100 8 100 7 200 100 6 100 5 100 4 100 3 100 2 100 1 100 0 
  65. + deleting alternate elements of z...100 100 100 200 6 5 4 3 2 1 0 
  66. + z: 9 8 7 100 100 100 100 100 100 100 
  67. + z in reverse order:
  68. + 100 100 100 100 100 100 100 7 8 9 
  69. + End of test
  70. *** 1.3    1992/06/03 01:55:31
  71. --- makefile.32    1992/12/28 07:29:25
  72. ***************
  73. *** 40,46 ****
  74.   # test targets
  75.   TEST= tbitset.ttp tbitstri.ttp tcomplex.ttp tfile.ttp tfix.ttp tfix16.ttp \
  76.   tfix24.ttp tgetopt.ttp tinteger.ttp tobstack.ttp trandom.ttp trationa.ttp \
  77. ! tstring.ttp
  78.   
  79.   # the stuff to make
  80.   ALL= $(TEST)
  81. --- 40,46 ----
  82.   # test targets
  83.   TEST= tbitset.ttp tbitstri.ttp tcomplex.ttp tfile.ttp tfix.ttp tfix16.ttp \
  84.   tfix24.ttp tgetopt.ttp tinteger.ttp tobstack.ttp trandom.ttp trationa.ttp \
  85. ! tstring.ttp tillist.ttp
  86.   
  87.   # the stuff to make
  88.   ALL= $(TEST)
  89. ***************
  90. *** 76,81 ****
  91. --- 76,82 ----
  92.   trandom.ttp: trandom.o
  93.   trationa.ttp: trationa.o
  94.   tstring.ttp: tstring.o
  95. + tillist.ttp: tillist.o
  96.   
  97.   # ah, the pleasures of single pass linking!
  98.   tcomplex.ttp: tcomplex.o
  99. *** 1.1    1992/03/22 21:15:45
  100. --- test32.g    1992/12/28 07:29:27
  101. ***************
  102. *** 40,45 ****
  103. --- 40,48 ----
  104.   echo tstring
  105.   .\tstring.ttp <tstring.inp >tstring.out
  106.   
  107. + echo tiLList
  108. + .\tillist.ttp >tillist.out
  109.   # now put it all together
  110.   #
  111.   echo tfile >out
  112. ***************
  113. *** 66,68 ****
  114. --- 69,73 ----
  115.   cat tfix16.out >>out
  116.   echo tfix24 >>out
  117.   cat tfix24.out >>out
  118. + echo tillist >>out
  119. + cat tillist.out >>out
  120. *** 1.1    1992/03/22 21:15:45
  121. --- tinteger.cc    1992/12/28 07:29:30
  122. ***************
  123. *** 375,380 ****
  124. --- 375,398 ----
  125.     longaccumtest(fact28, 10000000, 100000000);
  126.   }
  127.   
  128. + void modtest()
  129. + {
  130. +   Integer b, e, m;
  131. +   m = 1; m <<= 32;
  132. +   b = m + 1;
  133. +   e = Ipow( 2, 32 );
  134. +   b = Ipow( 2, 32 );                  // use b as a comparison
  135. +   cout << "2^32 = " << e << "\n";
  136. +   e %= (e-1);                         // do same op two ways...
  137. +   b = b % (b - 1);
  138. +   cout << "2^32 % (2^32-1) = " << e << "\n"; // e is incorrect here
  139. +   cout << "2^32 % (2^32-1) = " << b << "\n"; // but b is ok
  140. + }
  141.   main()
  142.   {
  143.     Integer one = 1;
  144. ***************
  145. *** 392,397 ****
  146. --- 410,416 ----
  147.     fibtest();
  148.     anothertest();
  149.     iotest();
  150. +   modtest();
  151.   
  152.     cout << "\nEnd of test\n";
  153.   }
  154. *** 1.1    1992/03/22 21:15:45
  155. --- tobstack.cc    1992/12/28 07:29:30
  156. ***************
  157. *** 25,31 ****
  158.     Obstack os;
  159.     char    c;
  160.   
  161. !   s[n++] = os.copy("\nunique words:");
  162.     assert(os.OK());
  163.     assert(os.contains(s[0]));
  164.   
  165. --- 25,31 ----
  166.     Obstack os;
  167.     char    c;
  168.   
  169. !   s[n++] = (char *)os.copy("\nunique words:");
  170.     assert(os.OK());
  171.     assert(os.contains(s[0]));
  172.   
  173. ***************
  174. *** 40,46 ****
  175.       }
  176.       else if (got_one)
  177.       {
  178. !       char* current = os.finish(0);
  179.         for (int i = 0; i < n; ++i) // stupid, but this is only a test.
  180.         {
  181.           if (strcmp(s[i], current) == 0)
  182. --- 40,46 ----
  183.       }
  184.       else if (got_one)
  185.       {
  186. !       char* current = (char *)os.finish(0);
  187.         for (int i = 0; i < n; ++i) // stupid, but this is only a test.
  188.         {
  189.           if (strcmp(s[i], current) == 0)
  190.